//
//  RoundImageView.m
//  HuLaQuan
//
//  Created by liyan on 16/2/14.
//  Copyright © 2016年 yuwubao. All rights reserved.
//

#import "RoundImageView.h"

@implementation RoundImageView


// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}

-(void)awakeFromNib
{
    self.layer.masksToBounds=YES;
    self.layer.cornerRadius=self.frame.size.width/2.0f; //设置为图片宽度的一半出来为圆形
    self.layer.borderWidth=3.0f; //边框宽度
    self.layer.borderColor=[[UIColor clearColor] CGColor];//边框颜色
}
@end
